

CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
CFLAGS = -O2 -Wall -g -I../../include/crypto/fh_cesa/
#WARNINGS = -Wall -Wextra
#PTHREAD_LIBS = -lpthread
#LDFLAGS = $(PTHREAD_LIBS)

CFLAGS += -I$(SDK_DIR)/media_support/include
LDFLAGS += -L$(SDK_DIR)/media_support/lib/static -lpthread -lfh_crypto_api -lvmm



all: cesa_api_test
#%: %.c
#	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
cesa_api_test : cesa_test.o fh_unf_cesa.o \
	crypto_firm/aes/aes.o crypto_firm/des/des.o \
	crypto_firm/crypto_api_aes.o crypto_firm/crypto_api_des.o \
	fh_crypto_api.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
	rm -rf *.o cesa_api_test crypto_firm/*.o crypto_firm/aes/*.o crypto_firm/des/*.o

